package com.hqyj.cl.mapper;

import com.hqyj.cl.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User login(@Param("username") String username, @Param("password") String password);

    //selectAllUser
    List<User> selectAllUser();

    int deleteUserById(int id);

    //模糊查询
    List<User> selectUserByUserName(String username);

    //   updateUserByUsername
    int updateUserByUsername(User user);
//    addUser
    int addUser(User user);

   User checkUsername(String username);

}
